package net.wangds.auth.account.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import net.wangds.data.DisableEnum;
import net.wangds.data.Disableable;
import net.wangds.data.impl.IdCreate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(
        name="auth_account_user_ref"
)
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Builder
public class GeneralAccountUserRef extends IdCreate implements Disableable {
    private static final long serialVersionUID = 0;
    @Column(length=36)
    private String accountId;
    @Column(length=36)
    private String userId;
    @Column(length=4)
    private DisableEnum disable;

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public DisableEnum getDisable() {
        return disable;
    }

    @Override
    public void setDisable(DisableEnum disable) {
        this.disable = disable;
    }
}
